package cc.lj.internal.coupons.infrastructure.repository;

import cc.lj.internal.core.model.PageParam;
import cc.lj.internal.coupons.domain.ticket.repository.ITicketBatchMerchantListRepository;
import cc.lj.internal.coupons.infrastructure.po.TicketBatchMerchantListPO;
import cc.lj.internal.coupons.infrastructure.repository.mysql.TicketBatchMerchantListMysqlRespository;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;


/**
 * 电子券商户黑白名单仓储实现
 * @author liangxifeng
 * @date 2023-06-14
 */
@Repository("ticketBatchMerchantListRepository")
public class TicketBatchMerchantListRepository implements ITicketBatchMerchantListRepository {
    @Resource(name="ticketBatchMerchantListMysqlRespository")
    private TicketBatchMerchantListMysqlRespository repository;


    @Override
    public Integer updateById(TicketBatchMerchantListPO entityPO) {
        return repository.updateById(entityPO);
    }

    @Override
    public TicketBatchMerchantListPO getById(Integer id) {
        TicketBatchMerchantListPO entityPO = repository.getById(id);
        return entityPO;
    }

    @Override
    public PageInfo<TicketBatchMerchantListPO> selectPage(PageParam pageParam) {
        return repository.selectPage(pageParam);
    }

    @Override
    public List<TicketBatchMerchantListPO> getList(TicketBatchMerchantListPO entityPO) {
        return repository.getList(entityPO);
    }

}
